package com.xiaoying.server.publish.upload;

import java.util.concurrent.ArrayBlockingQueue;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


public class UploadFileManager implements Runnable {
	
	private static Log log = LogFactory.getFactory().getInstance(UploadFileManager.class);
	
    /**
     * 配置信息文件路径
     */
    private static String config;
	
	private static UploadFileManager uploadFileManager;
	
	/**
	 * 上传文件线程忙碌
	 */
//	public static final int STATUS_BUSY=0x00;
	
	/**
	 * 上传文件线程可用
	 */
//	public static final int STATUS_ACTIVE=0x01;
	
	/**
	 * 上传文件线程失效
	 */
//	public static final int STATUS_DEAD=0x10;
	
    /**
     * 
     */
    private int maxQueue=10;
	
	private UploadFileManager(){
		
	}
	
	public static UploadFileManager getInstance(){
		if(uploadFileManager==null){
			uploadFileManager = new UploadFileManager();
		}
		return uploadFileManager;		
	}

	/**
	 * UploadFileManager 初始化
	 * 
	 */
    public void init() {
        //装载配置文件
//        activeQueue = new ArrayBlockingQueue<UploadFile>(maxQueue);
//        deadQueue = new ArrayBlockingQueue<UploadFile>(maxQueue);
    }
    

	
	@Override
	public void run() {
		checkDeadUploadThread();
		
	}
	public void checkDeadUploadThread() {
		UploadFile uploadFile = null;	 
        
	}


	
}
